package com.deimos.dataBase;

import java.awt.Polygon;

@SuppressWarnings("serial")
public class PolygonD extends Polygon{
	long pres = 10 ^ 5;
	
	public void addPoint(double x, double y){
		super.addPoint((int) (x * pres), (int) (y * pres));
	}
	
	public boolean isInside(double x, double y){
		return super.contains((int) (x * pres), (int) (y * pres));
	}
}
